<h1>Crm comprass List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Num factura</th>
      <th>Fecha</th>
      <th>Cif</th>
      <th>Proveedor</th>
      <th>Responsable compra</th>
      <th>Total</th>
      <th>Empresa</th>
      <th>Created at</th>
      <th>Updated at</th>
      <th>Validated at</th>
      <th>Is validated</th>
      <th>Removed at</th>
      <th>Remove it</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($crm_comprass as $crm_compras): ?>
    <tr>
      <td><a href="<?php echo url_for('compras/show?id='.$crm_compras->getId()) ?>"><?php echo $crm_compras->getId() ?></a></td>
      <td><?php echo $crm_compras->getNumFactura() ?></td>
      <td><?php echo $crm_compras->getFecha() ?></td>
      <td><?php echo $crm_compras->getCif() ?></td>
      <td><?php echo $crm_compras->getProveedorId() ?></td>
      <td><?php echo $crm_compras->getResponsableCompra() ?></td>
      <td><?php echo $crm_compras->getTotal() ?></td>
      <td><?php echo $crm_compras->getEmpresaId() ?></td>
      <td><?php echo $crm_compras->getCreatedAt() ?></td>
      <td><?php echo $crm_compras->getUpdatedAt() ?></td>
      <td><?php echo $crm_compras->getValidatedAt() ?></td>
      <td><?php echo $crm_compras->getIsValidated() ?></td>
      <td><?php echo $crm_compras->getRemovedAt() ?></td>
      <td><?php echo $crm_compras->getRemoveIt() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('compras/new') ?>">New</a>
